<h1><span></span>
    <?= $this->translate('My Friends') ?>
</h1>

<div id="profiles">
<?php foreach ($this->friends->friends->user as $friend): ?>
<div class="profile">
<img src="<?= empty($friend->image[2]) ? $this->baseUrl().'/images/disk-jockey-icon.png' : (string)$friend->image[2] ?>" alt="<?= $this->escape((string)$friend->name) ?>" />
    <strong><?= $this->escape((string)$friend->name) ?></strong><br />
<em><?= $this->escape((string)$friend->realname) ?></em><br />
<a href="<?= $this->escape((string)$friend->url) ?>"><?= $this->translate('Profile') ?></a><br />
<a href="<?= $this->url(array('action' => 'favourite-playlist', 'name' => (string)$friend->name)) ?>"><?= $this->translate('Favourite Playlist') ?></a><br />

</div>
    <br class="cleaner" />
<?php endforeach ?>
</div>